<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return=array();
if($_RQ['op']=='main'){
	$params=array();	
	$links=array();
	$list=pdo_getall('core_account_group',$params,array('id','title'),'','id desc');
	$links['group']=array(
			'title'=>'服务套餐/场景套餐',
			'url'=>manage_url('core/home.group_store/list/',true)
	);
	foreach($list as $item){		
		$links['group']['apps'][]=array(
			'title'=>$item['title'],
			'url'=>manage_url('core/home.group_store/detail/id='.$item['id'],true)
		);
	}
	$list=pdo_getall('core_article_group',$params,array('id','title'),'','id desc');
	$links['news']=array(
			'title'=>'新闻动态',
			'url'=>manage_url('core/home.news/list/',true)
	);
	foreach($list as $item){		
		$links['news']['apps'][]=array(
			'title'=>$item['title'],
			'url'=>manage_url('core/home.news/detail/id='.$item['id'],true)
		);
	}
	$return['links']=$links;
	include cfc('template')->template('ssr/index');
}